<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head >
    <title>关键词数据-[[${T(com.b2c.erp.DataConfigObject).getInstance().getSysName()}]]</title>

</head>
<body >
<div class="layui-body" style="padding:15px;">
    <div class="layui-tab layui-tab-brief" lay-filter="demo">
        <!-- <ul class="layui-tab-title">
            <li class="layui-this">“[[${keyword.keyword}]]”数据</li>
        </ul> -->

    <!--    <blockquote class="layui-elem-quote">订单总览</blockquote>-->

    <fieldset class="layui-elem-field">
        <legend>“[[${keyword.keyword}]]”数据</legend>
        <div class="layui-field-box">
            <form class="layui-form layui-form-pane1" method="get" th:action="@{/big_data/keyword_hot_list}">

                <div class="layui-form-item">


                    <div class="layui-inline">
                  
                        <i>总共：<span style="color: red" th:text="${totalSize}"></span>条记录</i>
                    </div>
                    <!-- <div class="layui-inline">
                        <a href="javascript:;" id="add_keyword" class="layui-btn layui-btn-normal">添加“[[${keyword.keyword}]]”数据</a>
                    </div> -->
                   
                </div>

            </form>
        </div>
    </fieldset>

    <!-- start dd-wrapper -->
    <link rel="stylesheet" href="/goods/order.css"/>
    <div class="dd-wrapper">
        <table class="dd-table">
            <tr>
       
                <th>类目</th>
                <th>平台</th>
                <th>搜索</th>
            
                <th >点击</th>
               
                <th >点击率</th>
                <th >成交转化率</th>
                <th>成交指数</th>
                <th>竞争指数</th>
                <th>市场平均出价</th>
                <th>排名</th>
                <th>在线商品数</th>
                
                <th>收录日期</th>
       
          
            </tr>
            <tr th:each="item:${lists}">
          
                <td><p th:text="${keyword.category}"></p></td>
                <td><p th:text="${keyword.platform}"></p></td>
                <td >
                    <p th:if="${item.sousuorenqi >0 }">搜索人气：<b th:text="${item.sousuorenqi}"></b></p>
                    <p th:if="${item.sousuoredu >0 }">搜索热度：<b th:text="${item.sousuoredu}"></b></p>
                </td>
                <td >
                    <p th:if="${item.dianjirenqi >0 }">点击人气：<b th:text="${item.dianjirenqi}"></b></p>
                    <p th:if="${item.dianjiredu >0 }"></p>点击热度：<b th:text="${item.dianjiredu}"></b></p>
                </td>
                <td >
                    <b th:text="${item.dianjilv}"></b>%
                    
                </td>
                <td><b th:text="${item.zhifulv}"></b>%</td>
                <td >
                    <p th:if="${item.chengjiaozhishu > 0}" th:text="${item.chengjiaozhishu}"></p>
                    <p th:if="${item.chengjiaozhishu == 0}" >-</p>
                </td>
                <td >
                    <span th:text="${item.jingzhengzhishu}"></span>
                </td>
               
                <td >
                    <p th:if="${item.shichangchujia > 0}" th:text="${item.shichangchujia}"></p>
                    <p th:if="${item.shichangchujia == 0}" >-</p>
                </td>
                <td>
                    <p th:if="${item.rank > 0}" th:text="${item.rank}"></p>
                    <p th:if="${item.rank == 0}" >-</p>
                </td>
                <td>
                    <p th:if="${item.goodsCount > 0}" th:text="${item.goodsCount}"></p>
                    <p th:if="${item.goodsCount == 0}" >-</p>
                </td>
              
                
                
                <td th:text="${item.includeDate}"></td>
                
       
            </tr>
        </table>
    </div>
    <!-- end dd-wrapper -->
    <div class="layui-box layui-laypage layui-laypage-default pageBox">
        <paging:pager th:value="${pageIndex}" th:rows="${totalSize}" th:size="${pageSize}"/>
    </div>


    <script type="text/javascript">
        var layer;
        var $;
        var windowOpen;


        layui.use(['laydate', 'jquery', 'form', 'layer'], function () {
            var laydate = layui.laydate;
            $ = layui.jquery;
            var form = layui.form;
            layer = layui.layer;
            laydate.render({
                elem: '#startTime'
                ,type:'year'
            });

            $("#source").val('[[${source}]]');
            form.render();
            var category = '[[${category}]]';
            var categoryId = '[[${categoryId}]]';
            $("#sp-sort").val(category);
            $("#categoryId").val(categoryId);

            $(function () {
                $("#add_keyword").click(function(){
                    layer.open({
                        type: 2,
                        title: '添加关键词数据',
                        shadeClose: true,
                        shade: 0.8,
                        area: ['600px', '65%'],
                        content: '/ecom/keyword_data_add?id=[[${keywordId}]]'
                    });
                })
            })
        });

    </script>


</div>
</body>
</html>
